<?php

class Comment extends Eloquent {

  public static $rules = array(
      'redditor_id' => 'required|exists:redditors,id',
      'text'        => 'required',
      'endtime'     => 'required',
      'enddate'     => 'required',
      'comment_id'  => 'required|unique:comments,comment_id',
      'link_id'     => 'required',
      'subreddit'   => 'required',
  );

  public function redditor() {
    return $this->belongsTo('redditor');
  }

}